package com.guchenbo.springboot;

import java.io.IOException;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author guchenbo
 * @date 2022/6/27
 */
@RestController
@RequestMapping("/api")
public class DemoController {

    @Resource
    private DemoService demoService;

    @GetMapping("/change/{account}")
    public void change(@PathVariable String account) throws IOException {
        demoService.change(account);
    }
}
